<template>
  <div class="form-container" >
    <el-tabs type="border-card">
    <div>
      <p class="content-tit">查询条件</p>
      <el-form :label-position="labelPosition" label-width="100px" :model="formData">
        <el-row type="flex" class="row-bg">
          <el-col :span="8">
            <el-form-item label="印刷订单号" size="mini">
              <el-input v-model="formData.printOrderNo"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="总分征订机构" size="mini">
              <el-input v-model="formData.applyTempCode"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row type="flex" class="row-bg">
          <el-col :span="8">
            <el-form-item label="单证名称" size="mini">
              <el-input v-model="formData.certifyName"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="单证类型" size="mini">
              <el-input v-model="formData.certifyType"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <div align="right">
        <el-button type="primary" @click="query" icon="el-icon-search">查询</el-button>
      </div>
    </div>
    <div>
      <p class="content-tit">
        <span @click="isShow('isShowSingles')" v-if='isShowSingles'>-</span>
        <span @click="isShow('isShowSingles')" v-else>+</span>印刷信息
      </p>
      <el-table :data="certifysList" ref="userTable" @selection-change="handleSelectionChange" style="width: 100%"
                class='table-common' :highlight-current-row="true" border
                v-show="isShowSingles">
        <el-table-column label="#" checked="selectionData"
                         type="selection"
                         min-width="6%">
        </el-table-column>
        <el-table-column label="序号" type='index' min-width="8%" align="center"></el-table-column>
        <el-table-column prop="certifyCode" label="总分征订机构" min-width="10%" align="center"></el-table-column>
        <el-table-column prop="certifyName" label="印刷订单号" min-width="10%" align="center"></el-table-column>
        <el-table-column prop="certifyType" label="征订日期" min-width="10%" align="center"></el-table-column>
        <el-table-column prop="certifyOperType" label="征订单证种类" min-width="8%" align="center"></el-table-column>
        <el-table-column prop="certifyStock" label="印刷厂" min-width="8%" align="center"></el-table-column>
      </el-table>
      <div class="mar15 " align="right" v-show="isShowSingles">
        <el-pagination
          @current-change="handleCurrentChangeSingle"
          :current-page="selfPage.currentPage"
          :page-size="selfPage.perPage"
          layout="total, prev, pager, next, jumper"
          :total="selfPage.totalSize">
        </el-pagination>
      </div>
      <div align="right">
        <el-button type="primary" @click="">确认入库</el-button>
      </div>
    </div>
    </el-tabs>
  </div>
</template>

<script>
  export default {
    name: "print-card-instorage",
    data() {
      return {
        dialogTableVisible: false,
        labelPosition: 'right',
        isShowSingles: true,
        formData: {
          printOrderNo: '',
          applyTempCode: '',
          certifyName: '',
          certifyType: '',
        },
        selfPage: {
          currentPage: 1,
          hasMore: true,
          perPage: 10,
          totalPage: 0,
          totalSize: 0
        },
        publicPage: {
          currentPage: 1,
          hasMore: true,
          perPage: 10,
          totalPage: 0,
          totalSize: 0
        },
        certifysList: []
      }
    },
    methods: {
      isShow(val) {
        this[val] = !this[val]
      },
      handleSelectionChange(val) {
        this.selectionData = val;
      },
      handleCurrentChange(num) {
        this.selfFormData.pageNum = num
      },
      handleCurrentChangeSingle(num) {
        this.selfFormData.pageNum = num
      },
    }
  }
</script>

<style scoped>

</style>
